home *** CD-ROM | disk | FTP | other *** search
- ^d::
-
- Startup:
-
- ifnotexist, Startup4.txt
- {
- gosub, updateall
- send,^c
- }
-
- clipboard=
-
- send,^c
-
- S:
- TrayTip,, Searching....
-
- if A_OSVersion <= WIN_ME
- {
- SplashTextOn , 500, 30, Searching, Searching Startup database
- WinMove, Searching, Searching Startup database, 0, 0
- }
-
- ClipWait, 2.5
- if clipboard=
- if ErrorLevel <> 0
- {
- MsgBox, The attempt to copy text onto the clipboard failed.
- return
- }
-
- startupclip=%clipboard%
-
- startup=
-
- Loop, read, Startup4.txt
- {
-
- ifinstring, A_LoopReadLine, %startupclip%
- {
-
- startupitems=%A_LoopReadLine%
-
- StringReplace,startupitems,startupitems,Status:,]`nStatus:%a_tab%,All
-
- StringReplace,startupitems,startupitems,File:,`nFile:%a_tab%,All
-
- StringReplace,startupitems,startupitems,Name:,Name:%a_tab%[,All
-
- StringReplace,startupitems,startupitems,Description:,`n`n,All
-
- StringReplace,startupitems,startupitems,More Info:,`n,All
-
- startup=%startupitems%`n------------------------------------------------------------------------------------------------------------------------------`n%startup%
-
- }
-
- }
-
-
- if A_OSVersion <= WIN_ME
- {
-
- SplashTextOn , 500, 30, Search Finished, Search Finished
- WinMove, Search Finished, Search Finished, 0, 0
- sleep, 500
- SplashTextOff
- }
- else
- {
- sleep, 500
- Traytip,, Search Finished
- sleep, 500
- Traytip
- }
-
- SplashTextOff
-
- if startup<>
- {
- GUI, destroy
- Gui, Add, Edit, x7 y11 w510 h390,%startup%
- Gui, Show, x336 y315 h411 w525, Search results for %startupclip%.....
-
- winwait, Search results for %startupclip%.....
-
- ControlClick, Edit1, Search results for %startupclip%.....,, Left
- }
- else
- {
- Traytip,, The selected item was not found.
- sleep, 500
- Traytip
- return
- }
- Return
-
- GuiClose:
- {
- gui, cancel
- GUI, destroy
- startup=
- }
-
-
- reload
-
- return
-
-
- updatestartupoffline:
-
- MsgBox, 1, Startup Database, Click OK to Download the startup database from computercops.biz (This may take a while)
-
- ifmsgbox, cancel
- {
- SplashTextOff
- exit
- }
-
- TrayTip,, Downloading Startup List
-
- URLDownloadToFile, http://castlecops.com/startuplist_xml.php, Startup.txt
-
- setbatchlines, -1
-
- Loop, read, Startup.txt, Startup3.txt
- {
-
- A_LoopReadLine2=%A_LoopReadLine%
-
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,`,,,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,<item>,`,,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,</item>, ,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,<name>,Name:,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,</name>, ,All
-
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,<status>,Status:,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,</status>, ,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,<command>,File:,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,</command>, ,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,<description>,Description:,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,</description>, ,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,<infourl>,More Info:,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,</infourl>,,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, " target=\"_blank\">, , all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, " target="_blank">, , all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, " target="_blank", , all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, /a>, , all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, <a href=", , all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, <font color=\"#FF0000\">??</font>, , all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, <font color="#FF0000">, , all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, <a href=\", , all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, \" target=\"_blank\">, , all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, A<, , all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, \,%a_Space%, all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, <;,%a_Space%, all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, &,, all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, lt;,, all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, gt;,, all
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, /u&,, all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, & ,, all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, u& ,, all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2, D& ,, all
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,quot;,,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,`n,,All
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,`r,,All
-
- StringReplace, A_LoopReadLine2, A_LoopReadLine2,quot;,,All
-
- A_LoopReadLine2=%A_LoopReadLine2%
-
- fileappend, %A_LoopReadLine2%
- }
-
-
-
- Loop, read, Startup3.txt, Startup4.txt
- {
- A_LoopReadLine3=%A_LoopReadLine%
-
- StringReplace, A_LoopReadLine3, A_LoopReadLine3,`,,`n,All
-
- fileappend, %A_LoopReadLine3%
- }
-
- filedelete, Startup.txt
-
- filedelete, Startup3.txt
-
- TrayTip,, Download Finished
- sleep, 500
- TrayTip
-
- if A_OSVersion <= WIN_ME
- {
- SplashTextOff
- }
-
- SplashTextOff
-
- return
-